package com.zhuang.chapter17.work03;

public class Phone {
	/**
	 * 品牌
	 */
	private String brand;
	/**
	 * 型号
	 */
	private String type;
	/**
	 * 操作系统
	 */
	private String os;
	/**
	 * 价格
	 */
	private int price;
	/**
	 * 内存
	 */
	private int memory;

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getMemory() {
		return memory;
	}

	public void setMemory(int memory) {
		this.memory = memory;
	}

	public Phone(String brand, String type, String os, int price, int memory) {
		super();
		this.brand = brand;
		this.type = type;
		this.os = os;
		this.price = price;
		this.memory = memory;
	}

	public Phone() {
		super();
	}

	// 关于本机
	public void about() {
		System.out.println("品牌：" + brand + "\n" + "型号：" + type + "\n" + "操作系统：" + os + "\n" + "价格：" + price + "\n"
				+ "内存：" + memory + "\n");
	}

	// 打电话
	public void call(String num) {
		System.out.println("拨打电话" + num + "。。。");
	}

	// 打游戏
	public void playGame() {
		System.out.println("玩扫雷游戏。");
	}

	// 下载音乐
	public void downloadMusic(String song) {
		System.out.println("开始下载。。。。");
		System.out.println("下载完成。。。。");
	}

	// 播放音乐
	public void playMusic(String song) {
		System.out.println("播放歌曲：" + song);
	}
}
